home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 21
/
CU Amiga Magazine's Super CD-ROM 21 (1998)(EMAP Images)(GB)[!][issue 1998-04].iso
/
CUCD
/
Programming
/
Python-1.4
/
Lib
/
emacs.py
< prev
next >
Wrap
Text File
|
1996-11-24
|
500b
|
19 lines
# Execute Emacs code from a Python interpreter.
# This code should be imported from a Python interpreter that is
# running as an inferior process of Emacs.
# See misc/py-connect.el for the companion Emacs lisp code.
# Author: Terrence M. Brannon.
start_marker = '+'
end_marker = '~'
def eval (string):
tmpstr = start_marker + '(' + string + ')' + end_marker
print tmpstr
def dired (directory):
eval( 'dired ' + '"' + directory + '"' )
def buffer_menu ():
eval( 'buffer-menu(buffer-list)' )